import com.lc.YYGH.hosp.repository.HospitalRepository;
import com.lc.YYGH.model.hosp.Hospital;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.TestComponent;

import java.util.List;

@SpringBootTest
public class test {
    @Autowired
    private HospitalRepository hospitalRepository;
    @Test
    public void test2()
    {

        Hospital c=hospitalRepository.findByHoscode("1000_2");
       System.out.println(c);

    }

}
